<?php
class TPesquisar {
	
	public static function gerarFormularioPesquisa( $form, $tabela ){
		
	?>
		
		<fieldset>
            <legend>Filtro de pesquisa</legend>
            <select name="ddlCampo" class="textoMedio">
                <?php TSelect::MontaDropDownList(Listas::RetornarCamposTabela( $tabela ), $form["campo"]); ?>
            </select>
            <select name="ddlOperador" class="textoPequeno">
                <?php TUtils::MontaDropDownListOperador($form["operador"]); ?>
            </select>
            <input name="txtValor" class="textoMedio opcional" value="<?php echo $form["valor"]; ?>" />
            <input type="submit" name="btnAcao" title="Pesquisar" value="Pesquisar" />&nbsp;
        </fieldset>
	
	<?php
		
	}
	
}